#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int my_strlen(char* str)
{
	int count = 0;
	while(*str)
	{
		count++;
		str++;
	}
	return count;
}
int my_strlen2(char* str)
{
	char* star = str;
	while (*str)
		str++;
	return str - star;
}
int my_strlen3(char* str)
{
	if (*str=='\0')
		return 0;
	else
		return my_strlen3(str + 1) + 1;
}
int main()
{
	char arr[] = "abcdef";
	int ret=my_strlen(arr);
	printf("%d\n", ret);
	return 0;
}